package com.ruoyi.flink.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @program: ruoyi
 * @description: TimeUtils
 * @author: zengchen
 * @create: 2020-12-03 17:12
 **/
public class TimeUtils {
    private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String timestampToTimeString(long timestamp){
        return sdf.format(new Date(timestamp));
    }
}
